//************************************************************************
//  SloganCounter.java    Author:Lewis/Loftus
//
//  Demonstrates the use of the static modifier
//************************************************************************

public class SloganCounter
{
   //---------------------------------------------------------------------
   //  Creates several Slogan objects and prints the number of 
   //  objects that were created.
   //---------------------------------------------------------------------
   public static void main(String[] args)
   {
      Slogan obj;

      obj = new Slogan("Remenber the Alamo.");
      System.out.println(obj);

      obj = new Slogan("Don't worry. Be Happy.");
      System.out.println(obj);

      obj = new Slogan("Live Free or Die.");
      System.out.println(obj);

      obj = new Slogan("Talk is Cheap.");
      System.out.println(obj);

      obj = new Slogan("Talk is Cheap.");
      System.out.println(obj);
      System.out.println();
      System.out.println("Slogan created: " + Slogan.getCount());
   }
}
